package org.jeecg.modules.hotel.leave.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.basic.demo.bed.entity.LwgyBaseBed;
import org.jeecg.modules.hotel.arrangement.entity.LwgyHotelArrangement;
import org.jeecg.modules.hotel.leave.entity.LwgyHotelLeaveSchool;

/**
 * @Description: 离校管理
 * @Author: jeecg-boot
 * @Date:   2023-02-14
 * @Version: V1.0
 */
public interface ILwgyHotelLeaveSchoolService extends IService<LwgyHotelLeaveSchool> {

    /** 离校生床位查询 */
    IPage<LwgyHotelLeaveSchool> queryCheckOutList(Page<LwgyHotelLeaveSchool> page,
                                                    QueryWrapper<LwgyHotelLeaveSchool> queryWrapper);

    /** 离校生状态查询 */
    IPage<LwgyHotelLeaveSchool> queryConfirmList(Page<LwgyHotelLeaveSchool> page,
                                                  QueryWrapper<LwgyHotelLeaveSchool> queryWrapper);
    /** 更新学生状态 */
    void updateStateByNum(LwgyHotelLeaveSchool lwgyHotelLeaveSchool);

    /** 查询学生id和床位id */
    LwgyHotelArrangement queryStudentId(String studentNumber);

    /** 批量更新学生状态 */
    void updateStuState(String ids);
}
